# -*- encoding=utf8 -*-
import os
import unittest
from htmltestreport import HTMLTestReport

from common.logging_use import init_log_config
from config import BASE_DIR
from script.test01_login import TestLogin
from script.test_exam import TestExam

init_log_config(BASE_DIR + '/log/info.log')

suite = unittest.TestSuite()

suite.addTest(unittest.makeSuite(TestExam))

run = HTMLTestReport(BASE_DIR + os.sep + "report" + os.sep + "ExamReport.html","考务测试报告")

run.run(suite)